using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ExplosiveProp:MonoBehaviour, IDestructionHandler {

	[SerializeField] ProjectileData explosionProjectile;
	[SerializeField] float size;

	public void OnDestruction(Mob mob,Weapon weapon,Projectile projectile) {
		Projectile.Create(ProjectileData.nameToData[explosionProjectile.name],transform.position,Angle.right,x=> { x.stat.size.AddMultiply(size,0); });
	}

}
